package com.ruoyi.order.domain;

import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 地址对象 ver_address
 *
 * @author ruoyi
 * @date 2025-08-21
 */

@Data
@AllArgsConstructor
@NoArgsConstructor

public class VerAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 地址ID(主键） */
    private Long id;

    /** 用户ID（外键，关联user表） */
    @Excel(name = "用户ID", readConverterExp = "外=键，关联user表")
    private Long userId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    @JsonProperty(value = "receiver")
    @com.fasterxml.jackson.annotation.JsonAlias({ "receriver" })
    private String receiver;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String phone;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 街道 */
    @Excel(name = "街道")
    private String street;

    /** 州 */
    @Excel(name = "州")
    private String state;

    /** 邮编 */
    @Excel(name = "邮编")
    private String code;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detail;

    /** 是否默认地址(0否，1是） */
    @Excel(name = "是否默认地址(0否，1是）")
    @JsonProperty("is_default")
    private Long isDefault;
}
